<?php

use think\facade\Route;

// 支付配置路由
Route::group('payConfig', function () {
    // 支付配置
    Route::get('select', 'admin.PayConfig/select');

    Route::group(function () {
        Route::get('recyclebin', 'admin.PayConfig/recyclebin');
        Route::put('restore/:id', 'admin.PayConfig/restore');
        Route::delete('destroy/:id', 'admin.PayConfig/destroy');
        Route::resource('', 'admin.PayConfig');
    })->middleware('check_rule', 'admin');
});